{{--<script src="{{asset('/admin/layui/lay/modules/laydate.js')}}"></script>--}}
@switch($data['input_type'])
    @case('input')
        <div class="layui-form-item">
            <label class="layui-form-label">{{$data['info']}}</label>
            <div class="layui-input-block">
                <input type="text" name="{{$data['menu_name']}}" value="{{$data['value']??''}}" lay-verify="title" autocomplete="off" placeholder="请输入{{$data['info']}}" class="layui-input">
            </div>
        </div>
        @break

    @case('number')
        <div class="layui-form-item">
            <label class="layui-form-label">{{$data['info']}}</label>
            <div class="layui-input-block">
                <input type="text" name="{{$data['menu_name']}}" value="{{json_decode($data['value'],true)?:0}}" lay-verify="number" autocomplete="off" placeholder="请输入{{$data['info']}}" class="layui-input">
            </div>
        </div>
        @break

    @case('dateTime')
        <div class="layui-form-item">
            <label class="layui-form-label">{{$data['info']}}</label>
            <div class="layui-input-block">
                <input type="text" name="{{$data['menu_name']}}" value="{{$data['value']?:'1979-01-01 00:00:00'}}" lay-verify="" autocomplete="off" placeholder="请输入{{$data['info']}}" class="layui-input" id="{{$data['menu_name']}}">
            </div>
        </div>
        <script>
            //执行一个laydate实例
            {{--laydate.render({--}}
                {{--elem: '#'+"{{$data['menu_name']}}" //指定元素--}}
                {{--,type:'datetime'--}}
            {{--});--}}
        </script>
    @break

    @default
        <div class="layui-form-item">
            <label class="layui-form-label">{{$data['info']}}</label>
            <div class="layui-input-block">
                <input type="text" name="{{$data['menu_name']}}" value="{{json_decode($data['value'],true)?:''}}" lay-verify="title" autocomplete="off" placeholder="请输入{{$data['info']}}" class="layui-input">
            </div>
        </div>
        @break

@endswitch
